package http.secure.common.event.entity;

import http.secure.common.keys.SecureGuidSession;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * Key event entity encapsulation
 */
@Getter
public class KeyEvent extends ApplicationEvent {
    /**
     * 全局会话ID 依赖{@link SecureGuidSession}最终实现
     */
    private final String gsid;
    /**
     * 对称密钥
     */
    private final String key;
    /**
     * 浏览器指纹
     */
    private final String browserIv;

    public KeyEvent(Object source, String gsid, String key, String browserIv) {
        super(source);
        this.gsid = gsid;
        this.key = key;
        this.browserIv = browserIv;
    }
}